var i18Sharse = {};

i18Sharse.install = function (Vue, options) {
    Vue.prototype.$sharei18 = function (name,text,key){
        name = "ProjectShare."+name;
        let nameVal ="";
        try {
            nameVal =this.$t(name,[text]);
        }catch (e) {
            nameVal=text;
        }

        if(key){
            let tipVal=this.$t("rxDecorator."+key,[text]);
            nameVal=tipVal+nameVal;
        }
        return nameVal;
    };
}

export default i18Sharse;
